package com.myweb.demo.entity;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

public class Message {

    private String messageTitle;
    private String messageContent;
    @Temporal(TemporalType.TIMESTAMP)
    private Date messageDate;

    public String getMessageTitle() {
        return messageTitle;
    }

    public void setMessageTitle(String messageTitle) {
        this.messageTitle = messageTitle;
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    public Date getMessageDate() {
        return messageDate;
    }

    public void setMessageDate(Date messageDate) {
        this.messageDate = messageDate;
    }
}
